<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'usuario-form',
	'enableAjaxValidation'=>true,
	'focus'=>array($model,'nombre'),
)); ?>


<fieldset>

<span style="float:right;">
	<p class="note">Fields with <span class="required">*</span> are required.</p>
</span>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'nombre'); ?>
		<?php echo $form->textField($model,'nombre',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'nombre'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pass'); ?>
		<?php echo $form->passwordField($model,'pass',array('size'=>50,'maxlength'=>256)); ?>
		<?php echo $form->error($model,'pass'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'pass_repeat'); ?>
		<?php echo $form->passwordField($model,'pass_repeat',array('size'=>50,'maxlength'=>256)); ?>
		<?php echo $form->error($model,'pass_repeat'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'telefono'); ?>
		<?php echo $form->textField($model,'telefono'); ?>
		<?php echo $form->error($model,'telefono'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mail'); ?>
		<?php echo $form->textField($model,'mail',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'mail'); ?>
	</div>

	<div class="row" style="display:none">
		<?php echo $form->labelEx($model,'aprobado'); ?>
		<?php echo $form->textField($model,'aprobado'); ?>
		<?php echo $form->error($model,'aprobado'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'idLocalidad'); ?>
		<?php echo CHtml::activeDropDownList($model, 'idLocalidad', Localidad::model()->Nombre); ?>
		<?php echo $form->error($model,'idLocalidad'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'ciudad'); ?>
		<?php echo $form->textField($model,'ciudad'); ?>
		<?php echo $form->error($model,'ciudad'); ?>
	</div>
	
	<div class="row" style="display:none">
		<?php echo $form->labelEx($model,'aprobado'); ?>
		<?php echo $form->textField($model,'aprobado'); ?>
		<?php echo $form->error($model,'aprobado'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>
	
</fieldset>

<?php $this->endWidget(); ?>

</div><!-- form -->